//
//  HDWalletDetailCell.swift
//  HuaDaoPeifu
//
//  Created by ZERO on 2018/6/5.
//  Copyright © 2018年 paiyipai. All rights reserved.
//

import UIKit

class HDWalletDetailCell: UITableViewCell {

    @IBOutlet weak var timeLabel: UILabel!
    
    @IBOutlet weak var moneyLabel: UILabel!
  
    @IBOutlet weak var nameLabel: UILabel!
    
    @IBOutlet weak var numberLabel: UILabel!
    
    @IBOutlet weak var unitLabel: UILabel!
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        

    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
  
    
    var integralDetailModel: HDIntegralDetail?{
        didSet{
            
            if let model = integralDetailModel {
                timeLabel.text = model.closing_time
                moneyLabel.text = String(format: "%.2f", Double(model.integral ?? "0.00") ?? 0.00)
                nameLabel.text = model.product_name
                numberLabel.text = model.policyno
            }
        }
    }
    
    
}
